package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetFindPhoneRandIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetFindPhoneRandModel extends RetrofitBaseModel implements GetFindPhoneRandIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetFindPhoneRandModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void GetFindPhoneRand(String phone, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.getFindPhoneRand(phone);
        callenqueue(call,tListener);
    }

    @Override
    public void JudegFindPhoneRand(String phone, String rand, TListener<SuccessBean> tListener) {
Call<SuccessBean> call = allService.judegFindPhoneRand(phone, rand);
callenqueue(call,tListener);
    }
}
